package com.lqq.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;

/**
 * @author lqq
 * @date 2019/4/16
 */
@Embeddable
@Data
@NoArgsConstructor
public class MyFriendEntityId implements Serializable {

    @Column(name = "USER_ID", nullable = false)
    private Long userId;

    @Column(name = "FRIEND_ID", length = 16, nullable = false)
    private String friendId;

    public MyFriendEntityId(Long userId, String friendId) {
        this.userId = userId;
        this.friendId = friendId;
    }
}
